﻿using System;
using System.Web.UI.WebControls;
namespace UI.WebControls.ControlsBase
{
    /// <summary>
    /// UI层，页面控件基类，下拉列表基类
    /// </summary>
    public class DropDownListBase : DropDownList
    {
        /// <summary>
        /// 默认选择的值
        /// </summary>
        public string DefaultSelect = string.Empty;

        /// <summary>
        /// 重载基类事件
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            if (!string.IsNullOrEmpty(DefaultSelect))
                this.SelectedValue = DefaultSelect;
            base.OnLoad(e);
        }
    }
}
